package com.sharemarking.wa.platform.controller;

import com.sharemarking.wa.common.ResponseParams;
import com.sharemarking.wa.platform.service.MonthlyStatementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author dxy
 */
@RestController
@RequestMapping(value = "monthlyStatement")
public class MonthlyStatementController {
    @Autowired
    MonthlyStatementService monthlyStatementService;


    /**
     * 获取月结账单列表
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "getTotalList")
    public ResponseParams<?> getTotalList() throws Exception {
        return monthlyStatementService.getTotalList();
    }

    /**
     * 获取账单列表
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "getMonthList")
    public ResponseParams<?> getMonthList() throws Exception {
        return monthlyStatementService.getMonthList();
    }

    /**
     * PC-获取账单列表
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "getPCMonthList")
    public ResponseParams<?> getPCMonthList() throws Exception {
        return monthlyStatementService.getPCMonthList();
    }

}
